## Makefile that compiles the mailbox lkm.
## CS45 Driver Lab
##  Ben Marks, Chris Lekas


obj-m := mailbox.o

all: module

module:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 

# make all the mailbox device files in /dev
# only root can do this
devices:
	./makedevs

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 
